package com.etoak.mapper;

import com.etoak.bean.District;
import com.etoak.bean.Homestay;
import com.etoak.bean.HomestayOrder;
import com.etoak.bean.HomestayVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HomestayMapper  {


    List<HomestayVO> selectHomestay(HomestayVO homestay);

    HomestayVO queryHomestayByHid(HomestayVO hotel);

    HomestayVO queryHomestayRoomsById(HomestayOrder order);

    List<District> selectDictByName(@Param("name") String name, @Param("level")Integer level);

    int add(Homestay homestay);

    List<HomestayVO> selectAll(HomestayVO homestay);

    int update(Homestay homestay);

    int del(Integer id);

    List<HomestayVO> queryHomestayByKeyWords(@Param("keyword") String keyword, @Param("destination") String destination);
}